import request from '@/utils/request'

// 查询定时爬虫列表
export function listReptile(query) {
  return request({
    url: '/reptilebytime/reptile/list',
    method: 'get',
    params: query
  })
}

// 查询定时爬虫详细
export function getReptile(rId) {
  return request({
    url: '/reptilebytime/reptile/' + rId,
    method: 'get'
  })
}

// 新增定时爬虫
export function addReptile(data) {
  return request({
    url: '/reptilebytime/reptile',
    method: 'post',
    data: data
  })
}

// 修改定时爬虫
export function updateReptile(data) {
  return request({
    url: '/reptilebytime/reptile',
    method: 'put',
    data: data
  })
}

// 删除定时爬虫
export function delReptile(rId) {
  return request({
    url: '/reptilebytime/reptile/' + rId,
    method: 'delete'
  })
}
